package com.tencreat.domain.mall;

import com.baomidou.mybatisplus.annotation.*;
import com.tencreat.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.tencreat.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;


/**
 * 平台/供应商发货地址对象 mall_deliver_address
 *
 * @Author tencreat
 * @Company: 深圳腾创互联科技有限公司
 * @link: https://tencreat.com
 * @Date 2022-12-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("mall_deliver_address")
public class MallDeliverAddress extends BaseEntity<MallDeliverAddress> {
    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Long id;


    /**
     * 发货地址名称
     */
    @Excel(name = "发货地址名称")
    @ApiModelProperty(value = "发货地址名称")
    @TableField("`name`")
    private String name;


    /**
     * 后台用户id
     */
    @Excel(name = "后台用户id")
    @ApiModelProperty(value = "后台用户id")
    @TableField("`user_id`")
    private Long userId;


    /**
     * 行政区域表的省ID
     */
    @Excel(name = "行政区域表的省ID")
    @ApiModelProperty(value = "行政区域表的省ID")
    @TableField("`province`")
    private String province;


    /**
     * 行政区域表的市ID
     */
    @Excel(name = "行政区域表的市ID")
    @ApiModelProperty(value = "行政区域表的市ID")
    @TableField("`city`")
    private String city;


    /**
     * 行政区域表的区县ID
     */
    @Excel(name = "行政区域表的区县ID")
    @ApiModelProperty(value = "行政区域表的区县ID")
    @TableField("`county`")
    private String county;


    /**
     * 详细收货地址
     */
    @Excel(name = "详细收货地址")
    @ApiModelProperty(value = "详细收货地址")
    @TableField("`address_detail`")
    private String addressDetail;


    /**
     * 手机号码
     */
    @Excel(name = "手机号码")
    @ApiModelProperty(value = "手机号码")
    @TableField("`tel`")
    private String tel;


    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @TableLogic
    @TableField("`del_flag`")
    private String delFlag;


/*    *//**
     * 租户ID
     *//*
    @Excel(name = "租户ID")
    @ApiModelProperty(value = "租户ID")
    @TableField("`tenant_id`")
    private Long tenantId;*/


    /**
     * 经度
     */
    @Excel(name = "经度")
    @ApiModelProperty(value = "经度")
    @TableField("`lng`")
    private String lng;


    /**
     * 纬度
     */
    @Excel(name = "纬度")
    @ApiModelProperty(value = "纬度")
    @TableField("`lat`")
    private String lat;


    /**
     * 地址状态 0上架 1下架
     */
    @Excel(name = "地址状态 0上架 1下架")
    @ApiModelProperty(value = "地址状态 0上架 1下架")
    @TableField("`status`")
    private Long status;


    /**
     * 地址类型 0|发货地址 1|退货地址
     */
    @Excel(name = "地址类型 0|发货地址 1|退货地址")
    @ApiModelProperty(value = "地址类型 0|发货地址 1|退货地址")
    @TableField("`deliver_type`")
    private Integer deliverType;


}
